package com.ruoyi.web.controller.mall.goodsClass.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.List;

/**
 * 商品分类对象 goods_class
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class GoodsClass //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 父级ID */
    @Excel(name = "父级ID")
    private String parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String icon;

    /** 主推推广图 */
    @Excel(name = "主推推广图")
    private String imgurl;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String typeId;

    /** 类型等级(0-大类,1-小类) */
    @Excel(name = "类型等级(0-大类,1-小类)")
    private Integer level;

    /** 是否显示(0-显示,1-隐藏) */
    @Excel(name = "是否显示(0-显示,1-隐藏)")
    private Integer show;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long location;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long userIdCeate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /** 删除标记 */
    private Integer delFlag;

    private List<GoodsClass> childList;

    public List<GoodsClass> getChildList() {
        return childList;
    }

    public void setChildList(List<GoodsClass> childList) {
        this.childList = childList;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setShow(Integer show) 
    {
        this.show = show;
    }

    public Integer getShow() 
    {
        return show;
    }
    public void setLocation(Long location) 
    {
        this.location = location;
    }

    public Long getLocation() 
    {
        return location;
    }
    public void setUserIdCeate(Long userIdCeate) 
    {
        this.userIdCeate = userIdCeate;
    }

    public Long getUserIdCeate() 
    {
        return userIdCeate;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("icon", getIcon())
            .append("imgurl", getImgurl())
            .append("typeId", getTypeId())
            .append("level", getLevel())
            .append("show", getShow())
            .append("location", getLocation())
            .append("userIdCeate", getUserIdCeate())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
